#include "shapes.h"

shapes::shapes() 
{
    BOX_SIZE = 1;
}

void shapes::drawCube(int x, int y, int z) 
{
    glBegin(GL_QUADS);
        //Top Face
        glNormal3d(0, 1, 0);
        glColor3f(255, 0, 0);       // Red
        glVertex3f(x, y+1, z);
        glVertex3f(x, y+1, z+1);
        glVertex3f(x+1, y+1, z+1);
        glVertex3f(x+1, y+1, z);
        //Bottom Face
        glColor3f(255, 255, 0);     // Yellow
        glVertex3f(x, y, z);
        glVertex3f(x+1, y, z);
        glVertex3f(x+1, y, z+1);
        glVertex3f(x, y, z+1);
        //Left Face
        glColor3f(0, 0, 255);       // Blue
        glVertex3f(x, y, z);
        glVertex3f(x, y, z+1);
        glVertex3f(x, y+1, z+1);
        glVertex3f(x, y+1, z);
        //Right Face
        glColor3f(0, 255, 255);     // Light Blue
        glVertex3f(x+1, y, z);
        glVertex3f(x+1, y+1, z);
        glVertex3f(x+1, y+1, z+1);
        glVertex3f(x+1, y, z+1);
        //Front Face
        glColor3f(0, 255, 0);       // Green
        glVertex3f(x, y, z);
        glVertex3f(x, y+1, z);
        glVertex3f(x+1, y+1, z);
        glVertex3f(x+1, y, z);
        //Back Face
        glColor3f(255, 0, 255);     // Magenta
        glVertex3f(x, y, z+1);
        glVertex3f(x+1, y, z+1);
        glVertex3f(x+1, y+1, z+1);
        glVertex3f(x, y+1, z+1);
    glEnd();
}